/// 作用： 封装数据接口，方便组件进行调用
import request from './request';

interface HomeResponse<T> {
  errCode: number;
  message: string;
  data: T;
}

type IRS<T> = Promise<HomeResponse<T>>;

export function getHomePage(): IRS<Object> {
  return request.get('/6666');
}
